<?php
$theme = "classic";
if (isset($_GET['theme'])) {
	$theme = $_GET['theme'];
}

if (isset($_GET['n'])) {
	require("counter.php");
	$obj = new Counter();
	$obj->path = $theme;
	$obj->filetype = ".gif";
	
	$img = $obj->generate($_GET['n']);
	
	$obj->show($img, "gif");
}
